﻿<%@ Page Title="Account" Language="C#" MasterPageFile="~/SysAdmin/MasterPage_SysAdmin.master" AutoEventWireup="true" CodeBehind="AccountCreator.aspx.cs" Inherits="Ones.SysAdmin.AccountManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="row">
        <div class="col-md-12">
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="alert alert-block alert-success fade in" id="successfulMsg" runat="server">
                <button type="button" class="close close-sm" data-dismiss="alert">
                    <i class="icon-remove"></i>
                </button>
                <strong>Account is created !</strong> Employee can login the system now.
            </div>
            <div class="alert alert-block alert-danger fade in" id="failMsg" runat="server">
                <button type="button" class="close close-sm" data-dismiss="alert">
                    <i class="icon-remove"></i>
                </button>
                <strong>Account creating fail !</strong> Check account detail and create again.
            </div>
            <div class="widget">
                <div class="widget-header">
                    <i class="icon-align-left"></i>
                    <h3>
                        <b>Create Account</b>
                    </h3>
                </div>
                <div class="widget-content">
                    <form id="frmAds" method="post" class="form-horizontal validate-needed-form required">
                    <fieldset>
                        <legend class="section">Account Information</legend>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Employee
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <%--<label for="hint-field" class="control-label">
                                        employee name
                                    </label>--%>
                                    <%--<asp:Label runat="server" ID="lbl_empName" for="hint-field" class="control-label"></asp:Label>--%>
                                    <asp:TextBox runat="server" ID="txtEmpName" class="form-control parsley-validated"
                                        disabled></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <%--
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Job
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label for="hint-field" class="control-label">
                                        job title
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Division
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <label for="hint-field" class="control-label">
                                        division name
                                    </label>
                                </div>
                            </div>
                        </div>--%>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    User name
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <asp:TextBox runat="server" ID="txtUsername" data-type="dateIso" class="form-control parsley-validated required"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Email
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <asp:TextBox runat="server" ID="txtUserEmail" data-type="dateIso" class="form-control parsley-validated required"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Password
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <asp:TextBox TextMode="Password" runat="server" ID="txtUserPassword" data-type="dateIso"
                                        class="form-control parsley-validated required"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="col-md-3">
                                <label for="hint-field" class="control-label">
                                    Role
                                </label>
                            </div>
                            <div class="col-md-9">
                                <div class="form-group">
                                    <asp:DropDownList class="form-control required" Style="width: 160px" ID="ddlRole"
                                        runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <div class="form-actions">
                        <div>
                            <asp:Button runat="server" class="btn btn-success" Text="Create Account" ID="btnCreate"
                                OnClick="Create_Click" />
                            <button class="btn btn-default" type="button">
                                Cancel
                            </button>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphScript" runat="server">
</asp:Content>
